<?php
/**
 * Created by PhpStorm.
 * User: DaibiDaddy
 * Date: 2016/5/24
 * Time: 17:14
 */

namespace App\Base;
use Psr\Log\LoggerInterface;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;

class BaseForm
{
    public $data;


    public function getChoice()
    {

        return ["other"=>["choices"=>array_flip($this->data)]];
    }

    public function add( $key , $value )
    {
        $this->data[$key]=$value;
        return $this;
    }
}
